package com.zzyl.common.constant;

/**
 * 缓存的key 常量
 *
 * @author ruoyi
 */
public class CacheConstants {
    /**
     * 查询redis中报警的次数
     */
    public static final String IOT_ALERT_COUNT_PREFIX ="iot_alert_count_prefix:{}:{}:{}:" ;

    /**
     *  校验redis是否达到沉默值
     */
    public static final String IOT_ALERT_SILENT_PREFIX = "iot_alert_silent_prefix:{}:{}:{}:";

    /**
     *  华为云设备上报的最新数据
     */
    public static final String DEVICE_LAST_DATA_KEY = "device_last_data_key:";

    /**
     * 设备上报的数据
     */
    public static final String DEVICE_FILE_KEY = "device_file_key:";
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_FILE_KEY = "nursing_file:";
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     *  Redis缓存的护理等级key前缀
     */
    public static final String REDIS_KEY_PREFIX = "nursing_level:all";

    /**
     *  Redis缓存的护理计划key前缀
     */
    public static final String REDIS_KEY_PLAN = "nursing_plan:all";

    /**
     * Redis缓存的护理项目key前缀
     */
    public static final String REDIS_KEY_POJECTION = "nursing_project:all";

    /**
     * Redis缓存的房间RoomVo key前缀
     */
    public static final String REDIS_KEY_ROOM_VO = "roomvo:detail";

}
